package model

import "RMS/app/shop/model/base"

type PackageListReq struct {
	Id        *int    `form:"id"`
	Name      *string `form:"name"`
	EndTime   *int    `form:"end_time"`
	PageIndex *int    `form:"page_index"`
	PageSize  *int    `form:"page_size"`
}

type PackageListResp struct {
	Data  []map[string]interface{} `json:"data"`
	Total int                      `json:"total"`
	base.Resp
}

type AddPackageReq struct {
	Name        string  `json:"name,required" `
	Detail      string  `json:"detail,required"`
	Price       float64 `json:"price,required"`
	PictureUrls string  `json:"picture_urls,required"`
	Status      int     `json:"status,required"`
	Discount    float64 `json:"discount,required"`
}

type AddPackageResp struct {
	base.Resp
}

type UpdatePackageReq struct {
	Id          int      `json:"id,required"`
	Name        *string  `json:"name"`
	Price       *float64 `json:"price"`
	PictureUrls *string  `json:"picture_urls"`
	Status      *int     `json:"status"`
	Detail      *string  `json:"detail"`
	Discount    *float64 `json:"discount"`
}

type UpdatePackageResp struct {
	base.Resp
}

type DeletePackageReq struct {
	Id int `json:"id,required"`
}

type DeletePackageResp struct {
	base.Resp
}
